/**
 * 
 * @param {Element} element 
 */
function getDom(element) {
    var styleObj = window.getComputedStyle(element);
    var strList = ["{"]
    for (const key in styleObj) {
        if (styleObj.hasOwnProperty(key)) {
            const attr = styleObj[key];
            if (!isNaN(Number(key)))
                 continue
            if (attr != "" && attr != "0px"&&attr != "auto"&&attr!="normal"&&attr!="none"&&!key.includes("webkit")) {
               var key1=key.split(/(?=[A-Z])/).map(function (params) {
                    params[0]=params[0].toLocaleUpperCase();
                    return params
               }).join("-");
                strList.push(key1 + ":" + attr + ";");
            }
        }
    }
    strList.push("}");
    console.log(strList.join("\n"))
}

// var a= "listStyleType"
// console.log(a);